package com.example.receiver;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;
import java.util.Date;
@Component
@RabbitListener(queues = "PublishSubscribeQueueC")
public class ReceiverC {
    @RabbitHandler
    public void process(String message) {
        System.out.println("接收者C : " + message +","+ new Date());
    }
}
